home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / rmold / RCS / rmold.man,v < prev   
Encoding:
Text File  |  1991-03-12  |  2.9 KB  |  123 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.3
  10. date     91.03.12.14.19.36;  author kupfer;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     90.04.27.08.29.06;  author ouster;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     90.03.31.16.22.08;  author ouster;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @@
  27.  
  28.  
  29. 1.3
  30. log
  31. @Add the "timesFrom" option.
  32. @
  33. text
  34. @'\" Copyright 1990 Regents of the University of California
  35. '\" Permission to use, copy, modify, and distribute this
  36. '\" documentation for any purpose and without fee is hereby
  37. '\" granted, provided that this notice appears in all copies.
  38. '\" The University of California makes no representations about
  39. '\" the suitability of this material for any purpose.  It is
  40. '\" provided "as is" without express or implied warranty.
  41. '\" 
  42. '\" $Header: /sprite/src/admin/rmold/RCS/rmold.man,v 1.2 90/04/27 08:29:06 ouster Exp Locker: kupfer $ SPRITE (Berkeley)
  43. '/" 
  44. .so \*(]ltmac.sprite
  45. .HS RMOLD cmds
  46. .BS
  47. '\" Note:  do not modify the .SH NAME line immediately below!
  48. .SH NAME
  49. rmold \- Delete old files
  50. .SH SYNOPSIS
  51. \fBrmold\fR [\fIoptions\fR] \fInumDays file file ...\fR
  52. .SH OPTIONS
  53. .IP "\fB\-mod\fR" 15
  54. Use modify time instead of access time to control deletion.
  55. .IP "\fB\-print\fR" 15
  56. Do not actually delete any files;  just print a list of those that
  57. would be deleted.
  58. .IP "\fB\-timesFrom \fIdirectory\fR" 15
  59. For each
  60. .IR file ,
  61. get the access (or modify) time from \fIdirectory\fB/\fIfile\fR
  62. instead of from
  63. .IR file .
  64. .IP "\fB\-help\fR" 15
  65. Print a summary of the command-line options and exit without updating
  66. any targets.
  67. .BE
  68.  
  69. .SH DESCRIPTION
  70. .PP
  71. The \fBrmold\fR program deletes all of the named files that haven't
  72. been accessed in the last \fInumDays\fR days.  It prints the names
  73. of all the files it deleted.  If the \fB-mod\fR switch is given,
  74. then \fBrmold\fR deletes all the files that haven't been modified
  75. in \fInumDays\fR days.  If \fB-print\fR is specified then \fBrmold\fR
  76. prints the names of files that haven't been accessed (or modified)
  77. in \fInumDays\fR, but it doesn't delete any of them.
  78. .PP
  79. If 
  80. .B timesFrom
  81. is specified, 
  82. .B rmold
  83. will use the access (or modify) time of the same-named file in the
  84. given alternate directory.  This option lets you delete old backup files after
  85. the installed version of the file has been around for awhile.  For
  86. example, to delete backup copies of commands that were installed over
  87. 90 days ago, you could do something like
  88. .DS
  89.     cd /sprite/cmds.$MACHINE.old
  90.     rmold -mod -timesFrom /sprite/cmds.$MACHINE 90 *
  91. .DE
  92.  
  93. .SH KEYWORDS
  94. access, delete, modified, old
  95. @
  96.  
  97.  
  98. 1.2
  99. log
  100. @Argument missing from synopsis.
  101. @
  102. text
  103. @d9 1
  104. a9 1
  105. '\" $Header: /sprite/src/admin/rmold/RCS/rmold.man,v 1.1 90/03/31 16:22:08 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  106. d25 6
  107. d45 14
  108. @
  109.  
  110.  
  111. 1.1
  112. log
  113. @Initial revision
  114. @
  115. text
  116. @d9 1
  117. a9 1
  118. '\" $Header: /sprite/lib/forms/RCS/cmd.man,v 1.2 90/02/20 17:11:01 douglis Exp $ SPRITE (Berkeley)
  119. d18 1
  120. a18 1
  121. \fBrmold\fR [\fIoptions\fR] \fIfile file ...\fR
  122. @
  123.